package com.jdy.hotel.ui.register;


import com.jdy.hotel.net.DataSource;
import com.jdy.hotel.net.NetWork;
import com.jdy.hotel.net.callback.BaseCallback;
import com.jdy.hotel.support.BaseViewModel;

public class RegisterViewModel extends BaseViewModel {

    public void register() {
        if (checked()) {
            String url = DataSource.SERVER_IP + "/user/register";
            NetWork.doPost(url, get(), new BaseCallback(this));
        }
    }
}
